﻿using System.ServiceModel;
using System.ServiceModel.Web;
using Facebook.Core.Responses;

namespace Facebook.Core.ServiceContracts
{
    [ServiceContract]
    public interface IFacebookAuth
    {
        [OperationContract]
        [WebGet(
            UriTemplate = FacebookURITemplates.Auth.createToken,
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Xml,
            ResponseFormat = WebMessageFormat.Xml)]
        auth_createToken_response_wrapper createToken(string apiKey, string signature);

        [OperationContract]
        [WebGet(
            UriTemplate = FacebookURITemplates.Auth.getSession,
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Xml,
            ResponseFormat = WebMessageFormat.Xml)]
        auth_getSession_response getSession(string apiKey, string signature, string auth_token);
    }
}